<template>
  <div>
<el-container>
  <el-header >
    <div class="fu" >
        <div class="left">
          <img src="/veer.jpg" alt="" style="width:60px;height:60px;display:inline-block;">
    <span>烘焙帮后台管理系统</span>
    
        </div>
         
      <div class="right">
        <div class="radius">
          <img src="/touxiang.png" alt="" >
          <!-- style="width:50px;height:50px;" -->
        </div>
      <el-dropdown>
        <span class="el-dropdown-link">
        管理员
        <i class="el-icon-arrow-down el-icon--right"></i>
        </span>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>基本信息</el-dropdown-item>
          <el-dropdown-item @click.native.capture="getLogin">退出登录</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
      </div>
    </div>
  </el-header>
  <el-container style="backgroudcolor:#E9EEF3;">
    <el-aside width="160px" 
   >
    <!-- style="height: calc(100vh - 80px);" -->
       <el-col>
    <el-menu
     style="height:calc(100vh - 60px);"
      :default-active="$route.path"
      class="el-menu-vertical-demo"
      text-color="black"
      active-text-color="#409eff"
      router>
       <el-menu-item index="/component/user">
        <i class="el-icon-user-solid"></i>
        <span slot="title">用户列表</span>
      </el-menu-item>
      <el-menu-item index="/component/list">
        <i class="el-icon-menu"></i>
        <span slot="title">商品列表</span>
      </el-menu-item>
    
      <el-menu-item index="/component/hotword">
        <i class="el-icon-s-marketing"></i>
        <span slot="title">热词搜索</span>
      </el-menu-item>
        <el-menu-item index="/component/views">
        <i class="el-icon-s-platform"></i>
        <span slot="title">用户访问量</span>
      </el-menu-item>
      
    </el-menu>
  </el-col>
    </el-aside>
    <el-main>
      <!-- 二级路由 -->
      <router-view></router-view>
    </el-main>
  </el-container>
</el-container>

  </div>
</template>

<script>
  export default {
    methods: {
      getLogin() {
        console.log("点击退出登录");
         this.$router.push('/loginhou')
      }
    },
  }
</script>

<style lang="scss" scoped>

  
.el-aside {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 200px;
    [data-v-9bc5c49a]{
   background-color:#D9DAFF;
    }
}
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;

  }
/*滚动条样式*/
  .scroll::-webkit-scrollbar {
      width: 4px;    
  }
  .scroll::-webkit-scrollbar-thumb {
      border-radius: 10px;
      box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
      background: rgba(0,0,0,0.2);
  }
  .scroll::-webkit-scrollbar-track {
      box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
      border-radius: 0;
      background: rgba(0,0,0,0.1);

  }
 #app{
  width: 100%;
 }
 .fu{
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0;
  margin: 0;
  >.left{
    text-align: center;
    align-content: center;
    display: flex;
    justify-content: start;
    align-items: center;
    height: 60px;
    img{
      display: inline-block;
    }
    span{
      float: right;

      line-height: 60px;
    }
  }
  >.right{
    text-align: center;
    align-content: center;
    display: flex;
    align-items: center;
    height: 60px;
    >.radius{
      width: 45px;
      height: 45px;
      border-radius: 50%;
      overflow: hidden;
      display: flex;
      margin-right: 10px;
      >.img{
      display: inline-block;
      width: 100%;
      height: 100%;
    }
    }
    
    >.el-dropdown{
      text-align: center;
      line-height: 80px;
      .el-dropdown-link{
        font-size: 16px;
        color: #000;
      }
    }
  }
 }

 
</style>